package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.BigClueStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.BigClueStatSearchRequest;
import com.tuanzi.loan.vo.response.statistics.BigClueStatSearchResponse;
import org.springframework.data.domain.Page;

public class BigClueStatLazyDataModel extends BaseLazyDataModel<BigClueStatSearchRequest,BigClueStatSearchResponse> {
    private BigClueStatService service = SpringContextHolder.getBean(BigClueStatService.class);

    public BigClueStatLazyDataModel(BigClueStatSearchRequest bigClueStatSearchRequest) {
        super(bigClueStatSearchRequest);
    }

    @Override
    protected Page<BigClueStatSearchResponse> doLoad(PageSearcher<BigClueStatSearchRequest> pageSearcher) {
        return service.list(pageSearcher);
    }
}
